//滚动条在Y轴上的滚动距离
const getScrollTop = () => {
    let documentScrollTop = 0;
    documentScrollTop = document.documentElement.scrollTop;
    return documentScrollTop;
}
//文档(html)的总高度
const getScrollHeight = () => {
    let documentScrollHeight = 0;
    documentScrollHeight = document.documentElement.scrollHeight;
    return documentScrollHeight;
}
//浏览器视口的高度
const getWindowHeight = () => {
    let windowHeight = 0;
    windowHeight = document.documentElement.clientHeight;
    return windowHeight;
}

export {
    getScrollTop,
    getScrollHeight,
    getWindowHeight
}